


public class t674 {
    public static void main(String[] args) {
        int nums[] = {1,2,2,3};
        int max = 0;
        int tmp = 0;
        boolean falg = false;
        for (int i = 0; i < nums.length; i++) {
            tmp = 0;
            falg = false;
            for (int j = i + 1; j < nums.length; j++) {
                if (nums[i] > nums[j]) {
                    break;
                }
                if (nums[i] < nums[j] && !falg) {
                    falg = true;
                    ;tmp++;
                    continue;
                }
                if (nums[j - 1] >= nums[j]) {
                    break;
                }
                if (falg) {
                    if (nums[j - 1] < nums[j]) {
                        tmp++;
                    }

                }


            }
            max = Math.max(tmp, max);
        }

        System.out.println(max+1);
        //System.out.println(nums.length);


        //int n = nums.length;


        /*int dp[] = new int[n];
        int res = 0;
        for(int i = 0; i<n;i++){
            dp[i] = 1;
            if(i>0 && nums[i]>nums[i-1]){
                dp[i] = dp[i-1]+1;
            }
            res = Math.max(dp[i],res);
        }
        System.out.println(res);*/


    }
}
